package com.ruibang.glass.quality.controller.manage;

import com.ruibang.glass.quality.domain.req.InspectionDefectStatisticsReq;
import com.ruibang.glass.quality.entity.InspectionDefectStatisticsRule;
import com.ruibang.glass.quality.service.InspectionDefectStatisticsService;
import com.teaming.cloud.framework2.common.model.ResultBody;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @Author: songJinKang
 * @CreateTime: 2024-02-23  14:15
 * @Description: TODO
 * @Version: 1.0
 */

@RestController
@RequestMapping("/api/quality/manage/inspectionDefectStatistics")
@Api(value = "复检缺陷统计控制器", tags = {"复检缺陷统计控制器"})
public class InspectionDefectStatisticsController {

    @Autowired
    private InspectionDefectStatisticsService inspectionDefectStatisticsService;

    @PostMapping("/query")
    @ApiOperation(value = "查询复检缺陷统计数据", notes = "保存规则")
    public ResultBody query(@RequestBody InspectionDefectStatisticsReq inspectionDefectStatisticsReq) {
        return ResultBody.success(inspectionDefectStatisticsService.query(inspectionDefectStatisticsReq));
    }


}
